package com.example.demo.service;

import com.example.demo.domain.Goods;
import com.example.demo.domain.IndexGoods;
import com.example.demo.domain.Order;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsService {

    Goods getGoodsById(Integer id);

    List<Goods> getAll();

    List<Goods> getSearch(String searchText);

    public List<Goods> getByRange(Integer from,Integer pageNum);

    Goods getBaseGoodsbyId(Integer id);

    void delGoodsChangeStateById(Integer id);

    //增
    void addGoods(Goods goods,List<String> picURL);

    // 删
    void delGoodsById(Integer id);

    // 改
    void saveGoods(Goods goods,List<String> picURL);

    Integer getIdByName(String name);
}
